<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>模版数据管理 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/dtree.css">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/font/dtreefont.css">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/markdown/css/editormd.min.css" />
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-col-md12">
<div style="padding-left: 10px;line-height: 35px;" class="layui-card">
<span class="layui-breadcrumb">
<a href="">模版管理</a>
<a href=""><?php echo set_get('id') ?></a>
</span>
</div>
</div>
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-tab layui-tab-brief">
<ul class="layui-tab-title">
<li onclick="window.location.href='index.php?m=manage&c=Ad&a=document&id=<?php echo  set_get('id')  ?>'">页面视图文件</li>
<li onclick="window.location.href='index.php?m=manage&c=Ad&a=table&id=<?php echo  set_get('id')  ?>'">动态标签</li>
<li onclick="window.location.href='index.php?m=manage&c=Ad&a=mode&id=<?php echo  set_get('id')  ?>'">模块文件</li>
<li onclick="window.location.href='index.php?m=manage&c=Ad&a=info&id=<?php echo  set_get('id')  ?>'">模版信息</li>
<li class="layui-this" onclick="window.location.href='index.php?m=manage&c=Template&a=back_template&id=<?php echo  set_get('id')  ?>'">备份模版</li>
</ul>
</div>
<div class="layui-card-body">
<input type="hidden" id="id" name="id" value="<?php echo set_get('id') ?>">
<div class="layui-form-item">
<label class="layui-form-label"></label>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label>
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="post">导出当前模版</button>
</div>
</div>
<div class="layui-form-item">
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label>
<div class="layui-input-block">
<button style="background-color: #f23b3b;" class="layui-btn" lay-submit lay-filter="del">删除模版</button>
</div>
</div>
<style>.logos {width: 235px;height: 165px;border: #EEEEEE;border-style: solid;border-width: 1px;}</style>
</div>
</div>
</div>
</div>
</div>
<?php adminechohtnl(); ?>
<div id="foot">Copyright © 2019-2023 <a href="https://www.HDSysCms.Com?pro" target="_blank">HDSysCms <?php echo HDSYS_VERSION; ?></a> <br>
All Rights Reserved </div>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).use(['form', 'layer'], function() {var admin=layui.admin,$=layui.$,form=layui.form,element=layui.element;form.on('submit(post)', function(data) {data=data.field;layer.load(1);$.ajax({type: "post",url: 'index.php?m=manage&c=Template&a=back_template_ajax',data: {file: '<?php echo set_get('id') ?>'},dataType: "json",success: function(ret) {layer.closeAll('loading');layer.msg(ret.msg);top.window.location.href=ret.url;}});return false;});form.on('submit(del)', function(data) {layer.prompt({title: '请输入【删除模版】确认删除,删除无法恢复！',formType: 3}, function(pass, index) {if (pass=='删除模版') {layer.close(index);data=data.field;layer.load(1);$.ajax({type: "post",url: 'index.php?m=manage&c=Template&a=del_template_ajax',data: {file: '<?php echo set_get('id') ?>'},dataType: "json",success: function(ret) {layer.closeAll('loading');if (ret.code==1000) {layer.confirm(ret.msg, {btn: ['确定']}, function() {window.location.href='index.php?m=manage&c=Template&a=table';});} else {layer.msg(ret.msg);}}});} else {layer.msg('请输入删除模版才可删除');}});return false;});});</script>
<script charset="utf-8" src="<?php echo getcdnurlhost() ?>/kindeditor/kindeditor-all-min.js"></script>
<script charset='utf-8' src='".getcdnurlhost()."/kindeditor/app.js'></script>
<style>.layui-layer-input {color: #c83737;}</style>
</body>
</html>